package com.oazon.system.handler;

import com.oazon.moco.link.core.LinkEventController;
import com.oazon.moco.link.core.LinkSDK;
import com.oazon.system.SysActionChannal;
import com.oazon.system.action.ShutDownAction;
import com.oazon.system.core.IActionMessage;
import com.oazon.system.core.IActionhandler;

public class StandbyHandler implements IActionhandler {

	/**
	 * 待机24小时会自动关机
	 */
	@Override
	public void getIn(IActionMessage actionMessage) {
		LinkSDK.getInstance().requestPlayStatus(LinkEventController.systemEventSource);
		LinkSDK.getInstance().isWait(LinkEventController.systemEventSource);
	}

	@Override
	public void getOut() {
		SysActionChannal.getInstance().doAction(new ShutDownAction());
	}
	
	@Override
	public long getTimeOut() {
		return STANDBY_PROTECT_TIME_COUNT;
	}

	@Override
	public boolean isPauseTimer() {
		return false;
	}

	
}
